db3da6c0152119c1b922e66cb31be913fdd9b778,http/http-frontend/src/test/java/org/webpieces/httpfrontend/api/TestBadClient.java,TestBadClient,testTimeoutTimerCancelled,#,40
Before Change
public void testTimeoutTimerCancelled() throws InterruptedException, ExecutionException {
FrontendConfig config = new FrontendConfig("httpFrontend", new InetSocketAddress(80));
config.maxConnectToRequestTimeoutMs = 5000;
mgr.createHttpServer(config , requestListenerForTest);
ConnectionListener[] listeners = mockChanMgr.fetchTcpConnectionListeners();
Assert.assertEquals(1, listeners.length);
After Change
public void testTimeoutTimerCancelled() throws InterruptedException, ExecutionException {
FrontendConfig config = new FrontendConfig("httpFrontend", new InetSocketAddress(80));
config.maxConnectToRequestTimeoutMs = 5000;
HttpServer server = mgr.createHttpServer(config , requestListenerForTest);
server.start();
ConnectionListener[] listeners = mockChanMgr.fetchTcpConnectionListeners();
Assert.assertEquals(1, listeners.length);